\> PicoCTF 2022 Writeups

This website contains Jackwin Hui's writeups for the 2022 PicoCTF competition.

PicoCTF2022 - file-run1

Description

A program has been provided to you, what happens if you try to run it on the command line? Download the program here.

Information

Point Value: 100 points

Category: Reverse Engineering

Hints

  1. To run the program at all, you must make it executable (i.e. $ chmod +x run)
  2. Try running it by adding a '.' in front of the path to the file (i.e. $ ./run)

Solution

We download the program. Looking at its permissions, we need execute permissions to run it, so we run the command chmod +x fileRun1 to obtain execute permissions for the file. To run the file, we run the command ./fileRun1. Running the program gives us the flag. jackwin@COMPUTER ~ % ls -la
total 1
-rw-rw-r-- 1 jackwin admin 16736 Jan 1 00:00 fileRun1
jackwin@COMPUTER ~ % chmod +x fileRun1
jackwin@COMPUTER ~ % ls -la
total 1
-rwxrwxr-x 1 jackwin admin 16736 Jan 1 00:00 fileRun1
jackwin@COMPUTER ~ % ./fileRun1
The flag is: picoCTF{U51N6_Y0Ur_F1r57_F113_47cf2b7b}

Flag

picoCTF{U51N6_Y0Ur_F1r57_F113_47cf2b7b}